package cn.kgm.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    <E> List<E> selectList(String statementId, Object param) throws Exception;

    <T> T selectOne(String statementId, Object param) throws Exception;

    /**
     * 释放jdbc资源
     */
    void close() throws SQLException;

    /**
     * 获取clazz对象的代理方法
     *
     * @param <T>
     * @return
     */
    <T> T getMapper(Class<?> clazz);
}
